package com.spddr.pmos.cxf.tree.impl;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import com.spddr.pmos.cxf.tree.JaxrsMlgTree;
import com.spddr.pmos.jpa.Grid;
import com.spddr.pmos.jpa.Organization;
import com.spddr.pmos.jpa.TradeWay;
import com.spddr.pmos.repos.TradeWayRepos;

import cn.seqdata.pojo.TreeNode;


@Service
public class JaxrsMlgTreeImpl extends AbstractTreeImpl implements JaxrsMlgTree {
	@Override
	public Collection<TreeNode> byRoot() {
		List<TreeNode> nodes = new ArrayList<>();
		nodes.addAll(byJpaObject(true, Arrays.asList(cityProvinceRepos.findOne(51L))));
		return nodes;
	}
}
